from steps import BaseStep


class ScriptInterpreterReplace:
    def __init__(self, url: str, match: str, content: str, encodeing: str = 'utf-8'):
        self.url = url
        self.match = match
        self.content = content
        self.encodeing = encodeing


class ScriptInterpreter:
    def __init__(self, match: str, replaces: list[ScriptInterpreterReplace]):
        self.match = match
        self.replaces = replaces


class Script:
    def __init__(self, name: str, url: str, steps: list[BaseStep], interpreter: ScriptInterpreter = None):
        self.name = name
        self.url = url
        self.steps = steps
        self.interpreter = interpreter
